package de.edb.ctrl;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HomeController {
	 
 
    @RequestMapping("/logout.html")
    public ModelAndView logout() {
		ModelAndView mv = new ModelAndView();
		mv.setViewName("logout");
		mv.addObject("tab", "home");
		return mv;
    }
    
    @RequestMapping("/admin/login.html")
    public ModelAndView login() {
    	return new ModelAndView("redirect:/index.html");
    }

}
